<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html lang="en">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- filtersorter.cpp -->
  <title>FilterSorter QML Type | SortFilterProxyModel</title>
  <link rel="stylesheet" type="text/css" href="style/offline.css" />
</head>
<body>
<div class="sidebar">
<div class="toc">
<h3><a name="toc">Contents</a></h3>
<ul>
<li class="level1"><a href="#properties">Properties</a></li>
<li class="level1"><a href="#details">Detailed Description</a></li>
</ul>
</div>
<div class="sidebar-content" id="sidebar-content"></div></div>
<h1 class="title">FilterSorter QML Type</h1>
<span class="subtitle"></span>
<!-- $$$FilterSorter-brief -->
<p>Sorts rows based on if they match filters <a href="#details">More...</a></p>
<!-- @@@FilterSorter -->
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> Import Statement:</td><td class="memItemRight bottomAlign"> import  .</td></tr><tr><td class="memItemLeft rightAlign topAlign"> Inherits:</td><td class="memItemRight bottomAlign"> <p><a href="qml-sorter.html">Sorter</a></p>
</td></tr></table></div><ul>
<li><a href="qml-filtersorter-members.html">List of all members, including inherited members</a></li>
</ul>
<a name="properties"></a>
<h2 id="properties">Properties</h2>
<ul>
<li class="fn"><b><b><a href="qml-filtersorter.html#filters-prop">filters</a></b></b> : string</li>
</ul>
<!-- $$$FilterSorter-description -->
<a name="details"></a>
<h2 id="details">Detailed Description</h2>
<p>A <a href="qml-filtersorter.html">FilterSorter</a> is a <a href="qml-sorter.html">Sorter</a> that orders row matching its filters before the rows not matching the filters.</p>
<p>In the following example, rows with their <code>favorite</code> role set to <code>true</code> will be ordered at the beginning :</p>
<pre class="cpp">SortFilterProxyModel {
    sourceModel: contactModel
    sorters: FilterSorter {
        ValueFilter { roleName: <span class="string">&quot;favorite&quot;</span>; value: <span class="keyword">true</span> }
    }
}</pre>
<!-- @@@FilterSorter -->
<h2>Property Documentation</h2>
<!-- $$$filters -->
<div class="qmlitem"><div class="qmlproto">
<div class="table"><table class="qmlname">
<tr valign="top" class="odd" id="filters-prop">
<td class="tblQmlPropNode"><p>
<a name="filters-prop"></a><span class="name">filters</span> : <span class="type">string</span></p></td></tr>
</table></div>
</div><div class="qmldoc"><p>This property holds the list of filters for this filter sorter. If a row match all this <a href="qml-filtersorter.html">FilterSorter</a>'s filters, it will be ordered before rows not matching all the filters.</p>
<p><b>See also </b><a href="qml-filter.html">Filter</a>.</p>
</div></div><!-- @@@filters -->
<br/>
</body>
</html>
